﻿using FastEndpoints;
using FluentValidation;

namespace TodoList.FastEndpoints.Features.Delete;

internal sealed class Request
{
    public int Id { get; set; }
 
    internal sealed class Validator : Validator<Request>
    {
        public Validator()
        {
            RuleFor(x => x.Id).NotEmpty().WithMessage("Id is required.");
        }
    }
}

internal sealed class Response
{
    public string? Message { get; set; }
}